2b9ee34f67cb6776b1e170dda40735e67098b422,sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/SchedulesSkill.java,SchedulesSkill,task,#String#,160
Before Change
if (this.tasks.containsKey(name)) {
return this.tasks.get(name);
}
final AgentTask t = new AgentTask();
t.setName(name);
t.setGuard(new Function1<Agent, Boolean>() {
@Override
After Change
synchronized (getTaskListMutex()) {
task = this.tasks.get(name);
}
if (task == null) {
task = new AgentTask();
task.setName(name);
task.setGuard(TRUE_GUARD);
synchronized (getTaskListMutex()) {
this.tasks.put(name, task);